package com.txc.openfeign.common.pay.api;


import com.txc.openfeign.common.pay.factory.AliPayLifeFeignFallbackFactory;
import com.txc.openfeign.common.pay.vo.NotifyFileVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 生活缴费openfeign
 *
 * @InterfaceName: AliPayLifeFeign
 * @Author: TXC
 * @Date: 2022-01-26 10:56
 **/
@FeignClient(value = "cloud-pay", contextId = "aliPayLifeFeign", fallbackFactory = AliPayLifeFeignFallbackFactory.class)
public interface AliPayLifeFeign {

    @PostMapping("/alipay/reconciliation")
    void reconciliation(@RequestParam("filePath")String filePath, @RequestParam("fileName")String fileName);

    @PostMapping("/alipay/analysisNotifyFile")
    NotifyFileVo analysisNotifyFile(@RequestParam("filePath")String filePath, @RequestParam("fileName")String fileName);
}
